package com.lxh.chainofresponsibility;

/**
 * 经理
 * Create by lxh on 2020/2/15
 */
public class CommonManager extends Manager {

    @Override
    public void request(Request request) {
        if (request.getNumber() < 5) {
            System.out.println("经理批准");
        } else {
            if (superior != null) {
                superior.request(request);
            }
        }
    }
}
